# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pynids
_pkgname=pynids
pkgver=0.6.2
pkgrel=2
pkgdesc='A Python wrapper for libnids.'
arch=('x86_64' 'aarch64')
url="http://jon.oberheide.org/pynids/"
license=('GPL')
depends=('glib2' 'python2' 'libpcap' 'libnet')
source=("https://pypi.python.org/packages/72/ce/ebc732c201bb09171a2995e6281b8710e14a3a41aab5e4dcccea62bc334d/$_pkgname-$pkgver.tar.gz")
sha512sums=('da5a91d23c483be46a62e5a94ad87e6fec9b3f75eb1a4555e106c0f0666475cee5b266737931c5e3443a64e04c0c23e2bf3f239f6257e15cd2889ee10e881641')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

